<?php
/**
 * @ClassName: Fakertest
 * @Description: TODO
 * @author: wmsh
 * @Date: 2024-05-29 14:34
 * @Version: V1.0.0
 */

namespace app\test\controller\test;

use Faker\Factory;
use think\Controller;

class Fakertest extends Controller
{
    public function index()
    {
        $faker = Factory::create('zh_CN');
        var_dump("姓名：" . $faker->name());
        var_dump("姓名（男）：" . $faker->name('男'));
        var_dump("姓名（女）：" . $faker->name('女'));
        var_dump("密码：" . $faker->password(8));
        var_dump("手机号：" . $faker->phoneNumber());
        var_dump("日期：" . $faker->date());
        var_dump("时间：" . $faker->time());
        var_dump("年份：" . $faker->year());
        var_dump("地址：" . $faker->address());
        var_dump("国家：" . $faker->country());
        var_dump("国家代码：" . $faker->countryCode());
        var_dump("城市：" . $faker->city());
        var_dump("url：" . $faker->url());
        var_dump("sha1：" . $faker->sha1());
        var_dump("md5：" . $faker->md5());
        var_dump("amPm：" . $faker->amPm());
        var_dump("公司：" . $faker->company());
        var_dump("公司后缀：" . $faker->companySuffix());
        var_dump("公司邮箱：" . $faker->companyEmail());
        var_dump("浏览器：" . $faker->chrome());
        var_dump("颜色：" . $faker->colorName());
        var_dump("免费邮箱：" . $faker->freeEmail());
        var_dump("邮箱：" . $faker->email());
        var_dump("表情：" . $faker->emoji());
        var_dump("姓：" . $faker->lastName());
        var_dump("名字：" . $faker->firstName());
        var_dump("名字（男）：" . $faker->firstName('男'));
        var_dump("名字（女）：" . $faker->firstName('女'));
    }

}